package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class AlbumUpdateInfoParam implements Serializable {
    @ApiModelProperty(value = "相册名称", required = true, example = "可乐的相册")
    @NotNull(message = "修改失败！必须输入相册名")
    private String name;
    @NotNull(message = "修改失败！必须输入相册简介")
    @ApiModelProperty(value = "相册简介", required = true, example = "可乐的相册的简介")
    private String description;
    @NotNull(message = "修改失败！必须提交相册序号")
    @Range(max = 99,message = "修改失败！输入的序号数必须在0-99之间")
    @ApiModelProperty(value = "排序序号", required = true, example = "99")
    private Integer sort;
}
